package com.joysuch.wwyt.bp.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "动火审核分析")
public class BpWorkSafetyFileAnalyzeBean implements Serializable {

    @ApiModelProperty(value = "动火审核分析id")
    private Long id;
    //作业证id
    @ApiModelProperty(value = "作业证id")
    //@NotNull(message = "作业证id不能为空")
    private Long certId;

    //作业证类型
    @ApiModelProperty(value = "作业证类型")
   // @NotNull(message = "作业证类型不能为空")
    private String type;

    //分析时间
    @ApiModelProperty(value = "分析时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date date;

    //分析点名称
    @ApiModelProperty(value = "分析点名称")
    private String pointName;

    //分析数据
    @ApiModelProperty(value = "分析数据")
    private String data;

    //分析人id
    @ApiModelProperty(value = "分析人id")
    private Long userId;
    private String userName;

    //分析人类别
    @ApiModelProperty(value = "分析人类别:0公司人员;1承包商")
    private Integer userType;

    //设计的其他作业
    @ApiModelProperty(value = "设计的其他作业")
    private Long otherCert;

    @ApiModelProperty(value = "签名人")
    private BpWorkSafetySigenerBean sigenerBean;

}
